package com.whmall.service.crm.module.supplierchemical.dao;

import com.whmall.service.crm.entity.dto.supplierchemical.SupplierChemicalCoaQueryReqDTO;
import com.whmall.service.crm.module.supplierchemical.entity.SupplierChemicalCoaDO;
import com.whmall.service.crm.module.supplierchemical.entity.qo.SupplierChemicalCoaQO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SupplierChemicalCoaMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SupplierChemicalCoaDO record);

    int insertSelective(SupplierChemicalCoaDO record);

    SupplierChemicalCoaDO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SupplierChemicalCoaDO record);

    int updateByPrimaryKey(SupplierChemicalCoaDO record);

    List<SupplierChemicalCoaDO> selectByCreateDateAndCompanyIds(
            SupplierChemicalCoaQueryReqDTO supplierChemicalCoaQueryReqDTO);

    List<SupplierChemicalCoaDO> selectBy(SupplierChemicalCoaQO qo);

    int selectCountByCreateDateAndCompanyIds(SupplierChemicalCoaQueryReqDTO supplierChemicalCoaQueryReqDTO);
}